import VueRouter from "vue-router";
import router from "@/router";
import store from "@/store";
/**
 * 删除路由 根据path
 * @param {*} routes 
 */
export function delRoutes(routes) {
       
}

/**
 * 删除导航栏路由 根据path
 * @param {*} routes 
 */
export function resetnavRoutes(routes) {
      //  const totalroutes= router.getRoutes()
      //  console.log(totalroutes)
      //  const resroutes= totalroutes.filter(rou=>{
      //  return  !(routes.find(ro=>ro.path===rou.path)>0)
      //  })
      //  router.matcher = new VueRouter({
      //   routes: resroutes
      // }).matcher
}